package com.pine.sunshineelder.checkin.ao.elder;

import java.time.LocalDate;
import java.util.List;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Length;

import com.pine.sunshineelder.common.entity.RelativeEntity;

import lombok.Data;

@Data
public class ElderModAo {
	@Length(min = 2, max = 16, message = "名字长度在2-16之间")
	private String name;
	@Length(min = 6, max = 16, message = "账号长度在6-16之间")
	@Pattern(regexp = "\\w+", message = "账号只能为数字或英文")
	private String account;
	private String no;// 老人编号
	private String height;// 身高
	private String weight;// 体重
	private Integer booldType;// 血型 0-O型 1-A型 2-B型 3-AB型
	private Integer marriage;// 婚姻状况0-未婚 1-已婚 2-离异 3-丧偶
	private String medicalRecord;// 以往历史医疗记录
	private LocalDate enterTime;
	private String privatePhone;// 私人电话
	private String address;// 家庭地址
	private String image;// 照片
	@Pattern(regexp ="\\d{15}|\\d{18}" ,message="身份证号只能为15或18位")
	private String idCard;// 身份证号
	private LocalDate birthday;// 出生日期
	private String remark;// 备注

}
